const path = require("path");
module.exports = {
    publicPath:process.env.VUE_APP_MENU_URL,
    assetsDir: 'static',
    productionSourceMap: false,
    devServer: {
		open: true, //是否自动弹出浏览器页面
		host: "0.0.0.0",  
		hotOnly: true, //是否开启热更新
        proxy: {
            '/api':{
                target: process.env.VUE_APP_BASE_API,
                changeOrigin:true,
                pathRewrite:{
                    '^/api':''
                }
            }
        }
    },
    pluginOptions: {
        'style-resources-loader': {
          preProcessor: 'less',
          patterns: [path.resolve(__dirname, "./src/theme/style.less")] // 引入全局样式变量
        }
      }
}